﻿using System;
using System.Linq;
using System.Reflection;

namespace Phoenix.Utilities
{
    public static class AssemblyExtensions
    {
        public static string GetAssemblyName(this Assembly assembly)
        {
            return assembly
                .FullName
                .Split(new[] {','}, StringSplitOptions.RemoveEmptyEntries)
                .First()
                .Trim();
        }
    }
}